<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<!-- Site Properities -->
<title>高考志愿通平台</title>

<link rel="stylesheet" type="text/css" href="../css/semantic.css">
<link rel="stylesheet" type="text/css" href="../css/index.css">
<link rel="stylesheet" type="text/css" href="../css/transition.css">
<link rel="stylesheet" type="text/css" href="../css/morris.css">
<link rel="stylesheet" type="text/css" href="../css/styles.css">

<script src="../js/jquery.js"></script>
<script src="../js/semantic.js"></script>
<script src="../js/homepage.js"></script>
<script src="../js/transition.js"></script>
<script src="../js/morris.js"></script>
<script src="../js/raphael-2.1.0.min.js"></script>
<script src="../js/index.js"></script>
<script src="../js/jquery.autocomplete.min.js"></script>
<script src="../js/countries.js" charset="UTF-8"></script>
<script>
	
$(document).ready(function() {
	$('#submitButton1').removeClass('loading');
	$('#form').removeClass('loading');
	$('#submitButton1').click(function(){
    	$('#submitButton1').addClass('loading');
    	$('#form').addClass('loading');
    	$('#form').submit();
    });
	
	$('#form')
    .form({
    	max_score: {
        identifier  : 'max_score',
        rules: [
          {
            type   : 'integer',
            prompt : '请输入正确的关网分数！'
          }
        ]
      },min_score: {
          identifier  : 'min_score',
          rules: [
            {
              type   : 'integer',
              prompt : '请输入正确考生分数!'
            }
          ]
        },
        inline : true,
        on     : 'blur'
      });
	
});
</script>
<script src="../js/bootstrap-datepicker.min.js"></script>


</head>
<body id="home">
	<div class="column" style="z-index: 100000;">
		<div class="ui inverted fixed red  menu">
			<div class="header item">${sessionScope.authc_user.name}</div>
			<a class="item" href="${ctx}/asset/logout">退出</a>
			<div class="right link menu">
				<div class="ui mobile dropdown link item">
					会员中心 <i class="content icon"></i>
					<div class="menu link">
						<c:forEach var="item" items="${sessionScope.menus}"
							varStatus="status">
							<a class="item ${item['sort']=='0'?'active':'' }"
								href="${ctx}${item.href}">${item.name }</a>
						</c:forEach>
					</div>
				</div>
				<c:forEach var="item" items="${sessionScope.menus}">
					<a class="item ${item['sort']=='0'?'active':'' }"
						href="${ctx}${item.href}">${item.name }</a>
				</c:forEach>
			</div>
		</div>
	</div>
	
	<div class="ui vertical feature segment">
		<div class="ui centered page grid">
			<div class="ui column">
				<div class="ui negative message">
				  <div class="header">
				    ${sessionScope.time_desc}
				  </div>
				</div>
				<form id="form" class="ui form" action="${ctx}/asset/studentquery">
					<h4 class="ui dividing header">查询条件</h4>
					<div class="three fields">
						<div class="required field">
							<label>考生科类</label><select name="clazz" class="ui search dropdown">
								<option value="普通文科">普通文科</option>
								<option value="普通理科">普通理科</option>
								<option value="蒙授理科">蒙授理科</option>
								<option value="蒙授文科">蒙授文科</option>
							</select>
						</div>
						<div class="required field">
							<label>关网分数</label><input name="max_score" placeholder="上限分数" type="text" onkeyup="value=value.replace(/[^1234567890]+/g,'')" >
						</div>
						<div class="required field">
							<label>考生分数</label><input name="min_score" placeholder="下线分数" type="text" onkeyup="value=value.replace(/[^1234567890]+/g,'')" >
						</div>
					</div>
					<h4 class="ui dividing header"></h4>
					<div id="submitButton1" class="ui submit button">查询</div>
				</form>
			</div>
		</div>
	</div>
	
	<div class="ui vertical feature segment">
		<div class="ui centered page grid">
			<div class="ui column">
				<c:if test="${not empty msg}" >
				<div class="ui negative message">
				  <i class="close icon"></i>
				  <div class="header">
				    ${msg}
				  </div>
				</div>
				</c:if>
				<div class="ui negative message">
				  <div class="header">
				    查询到考学总数：${size}
				  </div>
				</div>
				<table class="ui celled striped  table">
					<thead>
				      <tr>
				        <th>投档分</th>
						<th>实考分</th>
						<th>民族</th>
						<th>性别</th>
						<!-- <th>专业</th> -->
						<th>是否服从调剂</th>
				      </tr>
			       </thead>
			       <tbody>
			       <c:forEach items="${students}" var="item">
							<tr>
								<td>${item.apply_score }</td>
								<td>${item.test_score }</td>
								<td>${item.nation }</td>
								<td>${item.gendar }</td>
								<!-- <td>${item.apply_major_name }</td> -->
								<td>${item.obey?'是':'否' }</td>
							</tr>
						</c:forEach>
			       </tbody>
				</table>
			</div>
		</div>
	</div>

	<div class="ui inverted footer vertical segment">
		<div class="ui stackable center aligned page grid">
			<div class="six wide column">
				<h5 class="ui inverted header">联系我们</h5>
				<addr>高考志愿通<br>
				青年路青年创业园<br>
				包头市<br>
				</addr>
				<p>400-0044-505</p>
			</div>
		</div>
	</div>
</body>

</html>
